/* 左右布局结构 */
:root {
  --sidebar-width: 250px;
  --header-height: 60px;
  --primary-color: #1976D2;
  --primary-light: #42A5F5;
  --primary-dark: #0D47A1;
  --sidebar-bg: #FFFFFF;
  --main-bg: #F5F7FA;
  --text-light: #FFFFFF;
  --text-dark: #333333;
  --border-color: #E0E0E0;
}

/* 基础布局 */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  text-align: center;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.sidebar-logo {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.nav-links li {
  padding: 0;
  margin: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background-color: rgba(25, 118, 210, 0.08);
  color: var(--primary-color);
}

.nav-link.active {
  background-color: rgba(25, 118, 210, 0.12);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
}

.nav-link i {
  margin-right: 0.8rem;
  width: 20px;
  text-align: center;
}

/* 主内容区域 */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  background-color: var(--main-bg);
  min-height: 100vh;
}

/* 顶部栏 */
.top-bar {
  height: var(--header-height);
  background-color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

/* 内容容器 */
.content {
  padding: 2rem;
}

/* 城市选择器 */
.city-selector-bar {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.city-selector-bar select {
  margin-left: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-dark);
  background-color: #FFFFFF;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sidebar {
    width: 60px;
    overflow: hidden;
  }
  
  .sidebar-header h2,
  .sidebar-logo span {
    display: none;
  }
  
  .nav-link span {
    display: none;
  }
  
  .nav-link i {
    margin-right: 0;
  }
  
  .main-content {
    margin-left: 60px;
  }
}

/* 移动端侧栏收起 */
@media (max-width: 576px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .menu-toggle {
    display: block;
  }
} 